<template>
    <div class="news">
        <home-header></home-header>
        <home-tabbar></home-tabbar>
        <div class="wrapper">
            <el-menu
            default-active="1"
            class="el-menu-vertical-demo"
            @open="handleOpen"
            @close="handleClose"
            background-color="#545c64"
            text-color="#fff"
            active-text-color="#ffd04b">
            <!-- <el-submenu index="1">
                <template slot="title">
                <i class="el-icon-location"></i>
                <span>导航一</span>
                </template>
                <el-menu-item-group>
                <template slot="title">分组一</template>
                <el-menu-item index="1-1">选项1</el-menu-item>
                <el-menu-item index="1-2">选项2</el-menu-item>
                </el-menu-item-group>
                <el-menu-item-group title="分组2">
                <el-menu-item index="1-3">选项3</el-menu-item>
                </el-menu-item-group>
                <el-submenu index="1-4">
                <template slot="title">选项4</template>
                <el-menu-item index="1-4-1">选项1</el-menu-item>
                </el-submenu>
            </el-submenu> -->
                <router-link :to="{name: 'part1'}">
                    <el-menu-item index="1">
                        <i class="el-icon-document"></i>
                        <span slot="title">僵尸企业的形成原因 </span>
                    </el-menu-item>
                </router-link>
                <router-link :to="{name: 'part2'}">
                    <el-menu-item index="2">
                        <i class="el-icon-document"></i>
                        <span slot="title">僵尸企业的演变</span>
                    </el-menu-item>
                </router-link>
                <router-link :to="{name: 'part3'}">
                    <el-menu-item index="3">
                        <i class="el-icon-document"></i>
                        <span slot="title">僵尸企业的危害</span>
                    </el-menu-item>
                </router-link>
                <router-link :to="{name: 'part5'}">
                    <el-menu-item index="5">
                        <i class="el-icon-document"></i>
                        <span slot="title">僵尸企业的政策</span>
                    </el-menu-item>
                </router-link>
            </el-menu>
            <div class="card">
                <transition name="fade" mode="out-in">
                    <router-view></router-view>
                </transition>
            </div>
      </div>
    </div>
</template>

<script>
import HomeHeader from '@/components/home/components/header.vue'
import HomeTabbar from '@/components/home/components/tabbar.vue'
import HomeContent from './components/content'
export default {
  name: 'news',
  components: {
    HomeHeader,
    HomeTabbar,
    HomeContent
  }
}
</script>

<style lang="stylus" scoped>
  .news{
  }
    .wrapper{
      display flex;
    }
      .el-menu-vertical-demo{
        position relative;
        top: 1rem;
        padding .5rem
        width 20%;
        height: 7rem;
    }
        .el-icon-document{
          // margin-top 1rem;
        }
      .card{
        width 60%;
        height: 6rem;
        padding: .5rem;
        margin-left: 3rem;
        margin-top: 1.5rem;
      }
</style>
